//
//  SlowBlood2Layer.h
//  SpaceStorm
//
//  Created by  mmj on 13-8-7.
//  血条  2层  一个背景  一个前景
//

#import "cocos2d.h"

@interface SlowBlood2Layer : CCNode
{
    CCSprite* _bgSprite;
    
    CCProgressTimer* _bloodTimer;
    
    float _width;
    float _height;
}
+(id) bloodWithBG:(NSString*)bgFrameName
            blood:(NSString*)bloodFrameName;

-(id) initWithBG:(NSString*)bgFrameName
           blood:(NSString*)bloodFrameName;

-(void) setProgress:(int)progress;
-(CCTexture2D*) sprite2Texture2D:(CCSprite*)sprite;


@property (readwrite) float width;
@property (readwrite) float height;

@end
